<?php
/**
 * Template Name: Make difference Template
 */
get_header();
global $dktmSetting;
?>

<div id="primary">
    <div id="content" role="main" class="network-page single-page">
        <div class="wrapper">
            <article id="post-0" <?php post_class(); ?>>

                <?php
                $profs = new WP_Query(array('post_type' => 'page', 'page_id' => @$dktmSetting['make_difference_id']));
                while ($profs->have_posts()) {
                    $profs->the_post();
                    // echo get_the_ID();
                    ?>
                    <header class="entry-header">
                        <h1 class="entry-title">You can make a difference</h1>

                    </header><!-- .entry-header -->
                    <div class="description"> <?php the_content(); ?></div>
                    <?php }wp_reset_query();
                ?>

                <div class="entry-content">
                    <ul class="network-listing clearfix">
                        <?php $profs = new WP_Query(array('post_type' => 'make-difference', 'posts_per_page' => -1)); ?>
                        <?php
                        while ($profs->have_posts()) {
                            $profs->the_post();
                            $thumb_id = get_post_thumbnail_id();
                            $image = wp_get_attachment_image_src($thumb_id, 'full');
                            ?>
                            <li class="eachProf group_listing">
                                <div class="transorm">
                                    <div class="sliderImage">
                                        <a href="<?php the_permalink(); ?>"><img src="<?php echo $image[0]; ?>"></a>
                                        <h2><?php the_title(); ?></h2>
                                    </div>
                                    <div class="hover-info">
                                        <?php the_excerpt(); ?>
                                    </div>
                                </div>

                            </li>
                        <?php }wp_reset_query(); ?>
                    </ul>
                </div><!-- .entry-content -->
            </article><!-- #post-<?php the_ID(); ?> -->

        </div><!-- #content -->

    </div>
</div><!-- #primary -->
<div class="clear"></div>
<?php //get_sidebar(); ?>
<?php get_footer(); ?>
